<li>
<div class="book-pic">
	<?php echo $this->Html->link($this->Html->image($this->Image->thumbnail($book['Book']['id'],$book["Book"]["path"]."/cover.jpg",'160*224',100,0),array('alt'=>$book["Book"]["title"])),'/books/view/'.$book['Book']['id'],array('escape'=>false)); ?>
</div>
<div class="book-info">
	<h3><?php echo $this->Html->link($book["Book"]["title"],'/books/view/'.$book['Book']['id']);?></h3>
	<p class="book-summary"><span><?php if( count($book["Authors"]) > 0 ){
				foreach( $book["Authors"] as $author){
					echo $author["name"];
				}
			}
			?></span>/<span><?php echo $this->Time->format('Y-m-d',$book["Book"]["pubdate"])?></span>/<span>格式:<?php echo $this->Time->format('Y-m-d',$book["Book"]["pubdate"])?> 
	/ 格式: <?php if( count($book["Datas"])> 0 ){
					foreach( $book["Datas"] as $data ){
						if( $data["format"] != "MBP" )
							echo $data['format'].'&nbsp;';
					}
				}?></span>/<span><?php echo $this->Time->format('Y-m-d',$book["Book"]["timestamp"])?>更新</span></p>
	<div class="book-desc">
		<?php if( isset($book["Comments"]) ){ 
	$comment = $book['Comments']['text'];
	$comment = str_replace("SUMMARY:<br>","",$comment);  
	echo $this->Text->truncate($comment,150,array('ending'=>'...','exact'=>true,'html'=>false)); 
} else { 
	echo "没有"; 
}?></div>
</div>
</li>
